<div id='top'>
	<?php echo "<h2>".$hdList[0]->hostname."</h2>"; ?>
</div>


<?php 
	for($i=0; $i<count($hdList); $i++)
	{
		$url = "./home/hdInfo/".$hdList[$i]->client_id."/".$hdList[$i]->devicePassName;
		echo "<a class='hda' id='hdaDeactive' ";
		echo "onClick=\"if(refresher!= '') refresher.stop(); refresher = new Ajax.PeriodicalUpdater($('rightContainer'), '".$url."', {asynchronous:true, frequency:3}); ";
		echo "new Ajax.Updater($('navigate'), './home/rewriteNavigater', {parameters: { url: '".$url."', name: '".$hdList[$i]->deviceShortName."', layer: 2}}); \">";
		
		echo "<div id='contentL'>";
			echo $hdList[$i]->deviceShortName;
		echo "</div>";

		echo "<div id='contentR'>";
			echo "<div id='percentBar'><b>";
			echo $hdList[$i]->percentBar;
			echo "</b></div>";
			echo $hdList[$i]->available." : ";
			echo $hdList[$i]->used." / ";
			echo $hdList[$i]->size."<br>";
			echo $hdList[$i]->mounted."<br>";
		echo "</div>";
		echo "</a>";
	}
?>
<script src="../javascripts/prototype.js" type="text/javascript"></script>

